package com.zbkj.common.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 仓库表
 * </p>
 *
 * @author keNan
 * @since 2025-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_warehouse")
@ApiModel(value = "Warehouse对象", description = "仓库表")
public class Warehouse implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id、")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "仓库名称")
    @NotBlank(message = "仓库名称不能为空")
    private String warehouseName;

    @ApiModelProperty(value = "仓库类型(1总仓   2省仓)")
    @NotNull(message = "仓库类型不能为空")
    private Integer warehouseType;

    @ApiModelProperty(value = "仓库编号")
    @NotBlank(message = "仓库编号不能为空")
    private String warehouseNumber;

    @ApiModelProperty(value = "仓库城市")
    @NotBlank(message = "仓库城市不能为空")
    private String warehouseCity;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "状态(0禁用  1启用)")
    private Integer status;

    @ApiModelProperty(value = "地图位置")
    @NotBlank(message = "地图位置不能为空")
    private String mapLocation;

    @ApiModelProperty(value = "详细地址")
    private String detailedAddress;

    @ApiModelProperty(value = "仓库经纬度")
    private String warehousePosition;

    @ApiModelProperty(value = "是否默认(0否  1是)")
    private Integer isDefault;

    @ApiModelProperty(value = "是否删除(0否  1是)")
    private Integer isDel;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
